module freq_div (
    input                       clk_50m,        //50M时钟频率
    input                       rst_n,          //低电平复位信号
    output                      us_p,           //输出微秒信号
    output                      ms_p,           //输出毫秒信号
    output                      s_p             //输出秒信号
);

freq_div_in_clk div_us_inst
(
    .clk_50m                    (clk_50m),
    .rst_n                      (rst_n),
    .out_p                      (us_p)
);

freq_div_in_pul div_ms_inst
(
    .clk_50m                    (clk_50m),
    .rst_n                      (rst_n),
    .in_p                       (us_p),
    .out_p                      (ms_p)
);

freq_div_in_pul div_s_inst
(
    .clk_50m                    (clk_50m),
    .rst_n                      (rst_n),
    .in_p                       (ms_p),
    .out_p                      (s_p)
);
 
endmodule